﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ListNetRanker
{
    public class IndexScore : IComparable<IndexScore>
    {
        public int index;
        public double score;

        public IndexScore(int index, double score)
        {
            this.index = index;
            this.score = score;
        }
        public int CompareTo(IndexScore o)
        {
            if (this.score > o.score)
                return 1;
            else if (this.score < o.score)
                return -1;
            else
                return 0;
        }
    }
}
